package com.dm.cloud.core.mode;

import com.dm.cloud.core.annotation.Query;
import com.dm.cloud.core.enums.QueryEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import com.dm.cloud.core.enums.*;
import java.util.Date;

/**
 * @Author sg
 * @ClassName BaseSearchDTO.java
 * @desc
 * @Date 2021/08/18 17:46
 */

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description ="基础对象")
public class BaseSearchDTO {

    /**
     * 物理标识
     */
    @Query(value = QueryEnum.EQ)
    @Schema(description = "物理主键标识")
    private String id;

    /**
     * 创建用户
     */
    @Query(value = QueryEnum.EQ)
    @Schema(description = "创建用户")
    private String createUser;

    /**
     * 创建时间
     */
    @Query(value = QueryEnum.EQ)
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 上次修改用户
     */
    @Query(value = QueryEnum.EQ)
    @Schema(description = "上次修改用户")
    private String updateUser;

    /**
     * 上次修改时间
     */
    @Query(value = QueryEnum.EQ)
    @Schema(description = "上次修改时间")
    private Date updateTime;


}
